<?php
namespace Admin\Model;
use Think\Model;
/**
* 用户模型
* @date: 2015年10月17日
* @author: Administrator
* @return:
*/
class UserModel extends Model{
	
	protected $tableName = 'log';
	public function addlog($data){
		$data['add_time'] = time();
		$data['ip'] = $_SERVER['REMOTE_ADDR'];
		if(trim($data['content']) == 1){
		    $data['content'] = "登录成功";
		}else{
		    $data['content'] = "登录失败";
		}
		$this->add($data);
		//$this->add($data);
	}
	
	
	
}
